

function factory (ArticleModel,BetterArticleModel) {
  return function (req, res) {
    BetterArticleModel.find({}, function (err, applys) {
      var _applys = []
      for (var i = 0; i < applys.length; i++) {
        if (!applys[i].status.checked) {
          _applys.push(applys[i])
        }
      }
      res.send(_applys || [])
    })
  }
}

module.exports = factory